#include<bits/stdc++.h>
using namespace std;
const int num=1e5+1;
int r[num];
int n;
int ans=0;
int flag[num];
int cnt=0;

int main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	cin>>n;
	memset(r,0,sizeof(r));
	for(int i=0;i<n;i++) flag[i]=1;
	for(int i=0;i<n;i++) cin>>r[i];
	sort(r,r+n);
	for(int i=0;i<n;i++){
		if(r[i]>r[cnt]&&flag[i]){
			flag[i]=0;
			ans++;
			cnt++;
		} 
	}
	cout<<n-ans;
	return 0;
}
